<?php
hesk_session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo (isset($hesk_settings['tmp_title']) ? $hesk_settings['tmp_title'] : $hesk_settings['hesk_title']); ?></title>
	<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $hesklang['ENCODING']; ?>" />
	<link href="<?php echo HESK_PATH; ?>hesk_style.css" type="text/css" rel="stylesheet" />
	<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>jquery-1.6.1.min.js"></script>
        <script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>hesk_javascript.js"></script>
    <?php
	/* Tickets shouldn't be indexed by search engines */
	if (defined('HESK_NO_ROBOTS'))
	{
		?>
		<meta name="robots" content="noindex, nofollow" />
		<?php
	}

	/* If page requires calendar include calendar Javascript and CSS */
	if (defined('CALENDAR'))
	{
		?>
		<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>inc/calendar/calendar_js.php"></script>
		<link href="<?php echo HESK_PATH; ?>inc/calendar/calendar.css" type="text/css" rel="stylesheet" />
		<?php
	}
    ?>
</head>
<body onload="javascript:var i=new Image();i.src='<?php echo HESK_PATH; ?>img/orangebtnover.gif';var i2=new Image();i2.src='<?php echo HESK_PATH; ?>img/greenbtnover.gif';">

<?php
include(HESK_PATH . 'header.txt');
?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" class="enclosing">
<tr>
<td>
<div id="main-header">
    <div id="logo-header">
        <?php if (isset($_SESSION['id_member'])) { ?>
            <img src="img/header-BM-user.jpg" />
        <?php } else { ?>
            <img src="img/header-BM.jpg" />
        <?php } ?>
    </div>
    <?php if (isset($_SESSION['id_member'])) : ?>
    <div id="welcome-header">
        <div >
            <img class="profpic-top" src="img/uploads/<?php echo $_SESSION['id_member']; ?>.jpg" />
        </div>
    </div>
    <?php endif;?>
    <div class="clear"></div>
</div>
<?php include(HESK_PATH . 'inc/show_nav.inc.php'); ?>
    <div align="center">
<table border="0" cellspacing="0" cellpadding="5" class="enclosing">
<tr>
<td>
